﻿<ResourceDictionary x:Class="TableTop.Presentation.Themes.Generic"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:base="clr-namespace:TableTop.Presentation.Controls;assembly=TableTop.Presentation.Controls"
                    xmlns:local="clr-namespace:TableTop.Presentation.Controls">                    
    <Style TargetType="base:CharacterSheetReader" x:Key="CharacterSheetReader">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="base:CharacterSheetReader">
                    <Grid>
                        <Border BorderBrush="Black" BorderThickness="1" Margin="5,5,5,5" Background="White">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="25"/>
                                    <RowDefinition />
                                    <RowDefinition />
                                </Grid.RowDefinitions>

                                <Border Grid.Row="0" Name="CharacterMasterData">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition />
                                            <ColumnDefinition />
                                            <ColumnDefinition />
                                        </Grid.ColumnDefinitions>

                                        <StackPanel Grid.Column="0" Background="Black" Orientation="Horizontal">
                                            <TextBlock Text="Name" Margin="5,0,5,0" Foreground="White" TextBlock.FontWeight="Bold" 
                                                       VerticalAlignment="Center"/>
                                            <TextBlock Text="{Binding Name}" Foreground="White" 
                                                       VerticalAlignment="Center" />
                                        </StackPanel>

                                        <StackPanel Grid.Column="1" Orientation="Horizontal">
                                            <TextBlock Text="Level" 
                                                       Margin="5,0,5,0" 
                                                       Foreground="White" 
                                                       TextBlock.FontWeight="Bold" 
                                                       VerticalAlignment="Center" 
                                                       Width="40"
                                                       Background="Black" />
                                            <TextBlock Text="{Binding Level}" 
                                                       Foreground="Black"
                                                       VerticalAlignment="Center" />
                                        </StackPanel>

                                        <StackPanel Grid.Column="2" Orientation="Horizontal">
                                            <TextBlock Text="XP" 
                                                       Margin="5,0,5,0" 
                                                       Foreground="White" 
                                                       TextBlock.FontWeight="Bold" 
                                                       Width="40"
                                                       VerticalAlignment="Center" 
                                                       Background="Black" />

                                            <TextBlock Text="{Binding XP}" 
                                                       Foreground="Black"
                                                       VerticalAlignment="Center" />
                                        </StackPanel>
                                    </Grid>
                                </Border>

                                <Border Grid.Row="1" Name="CharacterPhysical">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition />
                                            <ColumnDefinition />
                                        </Grid.ColumnDefinitions>

                                        <Grid.RowDefinitions>
                                            <RowDefinition />
                                            <RowDefinition />
                                            <RowDefinition />
                                            <RowDefinition />
                                            <RowDefinition />
                                            <RowDefinition />
                                            <RowDefinition />
                                        </Grid.RowDefinitions>

                                        <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal">
                                            <TextBlock Text="Str" Margin="5,0,5,0" 
                                                       Foreground="White" TextBlock.FontWeight="Bold" 
                                                       VerticalAlignment="Center" Background="Black" Width="40" TextAlignment="Center"/>
                                            <TextBlock Text="{Binding Str}" Foreground="Black" 
                                                       VerticalAlignment="Center" />
                                        </StackPanel>

                                        <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Horizontal">
                                            <TextBlock Text="Dex" Margin="5,0,5,0" Foreground="White" 
                                                       TextBlock.FontWeight="Bold" 
                                                       VerticalAlignment="Center" Background="Black" Width="40" 
                                                       TextAlignment="Center"/>
                                            <TextBlock Text="{Binding Dex}" Foreground="Black" 
                                                       VerticalAlignment="Center" />
                                        </StackPanel>

                                        <StackPanel Grid.Column="0" Grid.Row="2" Orientation="Horizontal">
                                            <TextBlock Text="Int" Margin="5,0,5,0" Foreground="White" 
                                                       TextBlock.FontWeight="Bold" 
                                                       VerticalAlignment="Center" Background="Black" 
                                                       Width="40" TextAlignment="Center"/>
                                            <TextBlock Text="{Binding Int}" Foreground="Black" 
                                                       VerticalAlignment="Center" />
                                        </StackPanel>

                                        <StackPanel Grid.Column="0" Grid.Row="3" Orientation="Horizontal">
                                            <TextBlock Text="Cos" Margin="5,0,5,0" Foreground="White" 
                                                       TextBlock.FontWeight="Bold" 
                                                       VerticalAlignment="Center" Background="Black" Width="40" TextAlignment="Center"/>
                                            <TextBlock Text="{Binding Cos}" Foreground="Black" 
                                                       VerticalAlignment="Center" />
                                        </StackPanel>

                                        <StackPanel Grid.Column="0" Grid.Row="4" Orientation="Horizontal">
                                            <TextBlock Text="Wis" Margin="5,0,5,0" Foreground="White" 
                                                       TextBlock.FontWeight="Bold" 
                                                       VerticalAlignment="Center" Background="Black" 
                                                       Width="40" TextAlignment="Center"/>
                                            <TextBlock Text="{Binding Wis}" Foreground="Black" 
                                                       VerticalAlignment="Center" />
                                        </StackPanel>

                                        <StackPanel Grid.Column="0" Grid.Row="5" Orientation="Horizontal">
                                            <TextBlock Text="Cha" Margin="5,0,5,0" Foreground="White" 
                                                       TextBlock.FontWeight="Bold" 
                                                       VerticalAlignment="Center" Background="Black" 
                                                       Width="40" TextAlignment="Center"/>
                                            <TextBlock Text="{Binding Cha}" Foreground="Black" 
                                                       VerticalAlignment="Center" />
                                        </StackPanel>
                                    </Grid>
                                </Border>
                                
                                <Border Grid.Row="2" Name="CharacterAbility">
                                    <Grid >

                                    </Grid>
                                </Border>

                                <Border Grid.Row="3">
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition />
                                        </Grid.RowDefinitions>

                                        <TextBlock Text="Notes" Grid.Row="0" Background="Black" Foreground="White"/>
                                        <TextBox Grid.Row="1" 
                                 ScrollViewer.HorizontalScrollBarVisibility="Auto" 
                                 ScrollViewer.VerticalScrollBarVisibility="Auto"
                                 AcceptsReturn="True"
                                 AcceptsTab="True" 
                                 Margin="5"/>
                                    </Grid>
                                </Border>
                            </Grid>                            
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>  
    
    <Style TargetType="{x:Type local:GRPGCharacterSheetEditor}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:GRPGCharacterSheetEditor}">
                    <Border x:Name="LayoutRoot" MinHeight="400" MinWidth="400">
                        <Border.Background>
                            <SolidColorBrush Color="White" />
                        </Border.Background>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <Grid Grid.Row="0" Name="grdSheetContent">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition />
                                    <RowDefinition />
                                </Grid.RowDefinitions>

                                <Grid Grid.Row="0" Name="CharacterMasterData">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition />
                                        <ColumnDefinition />
                                    </Grid.ColumnDefinitions>

                                    <Grid Grid.Column="0">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition />
                                        </Grid.ColumnDefinitions>

                                        <Grid Grid.Column="0" Background="Black">
                                            <TextBlock Text="Name: "                                        
                                                       Foreground="White" 
                                                       VerticalAlignment="Center" 
                                                       Grid.Column="0"/>
                                        </Grid>

                                        <TextBox Text="{Binding Name}" Grid.Column="1"
                                                 VerticalAlignment="Center"
                                                 Name="txtName"/>
                                    </Grid>

                                    <Grid Grid.Column="1">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition />
                                        </Grid.ColumnDefinitions>

                                        <Grid Grid.Column="0" Background="Black">
                                            <TextBlock Text="Level:" 
                                                       VerticalAlignment="Center"
                                                       Foreground="White" />
                                        </Grid>

                                        <TextBox Grid.Column="1" 
                                                 Text="{Binding Level}" 
                                                 VerticalAlignment="Center"
                                                 Name="txtLevel"/>
                                    </Grid>
                                </Grid>

                                <Grid Grid.Row="1" Name="CharacterPhysical">
                                    <Border>
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition />
                                                <ColumnDefinition />
                                            </Grid.ColumnDefinitions>

                                            <Grid.RowDefinitions>
                                                <RowDefinition />
                                                <RowDefinition />
                                                <RowDefinition />
                                                <RowDefinition />
                                                <RowDefinition />
                                                <RowDefinition />
                                                <RowDefinition />
                                            </Grid.RowDefinitions>

                                            <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal">
                                                <TextBlock Text="Str" Margin="0,0,5,0" 
                                                           Foreground="White" 
                                                           TextBlock.FontWeight="Bold" 
                                                           VerticalAlignment="Center" 
                                                           Background="Black" 
                                                           Width="40" 
                                                           TextAlignment="Center"/>
                                                <TextBox Text="{Binding Str}" Foreground="Black" 
                                                         VerticalAlignment="Center" 
                                                         Name="txtStr" 
                                                         Width="60"/>
                                            </StackPanel>

                                            <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Horizontal">
                                                <TextBlock Text="Dex" Margin="0,0,5,0" Foreground="White" 
                                                           TextBlock.FontWeight="Bold" 
                                                           VerticalAlignment="Center" 
                                                           Background="Black" 
                                                           Width="40" 
                                                           TextAlignment="Center" />
                                                <TextBox Text="{Binding Dex}" Foreground="Black" 
                                                         VerticalAlignment="Center" 
                                                         Name="txtDex" 
                                                         Width="60"/>
                                            </StackPanel>

                                            <StackPanel Grid.Column="0" Grid.Row="2" Orientation="Horizontal">
                                                <TextBlock Text="Int" Margin="0,0,5,0" Foreground="White" 
                                                           TextBlock.FontWeight="Bold" 
                                                           VerticalAlignment="Center" 
                                                           Background="Black" 
                                                           Width="40" 
                                                           TextAlignment="Center"/>
                                                <TextBox Text="{Binding Int}" 
                                                         Foreground="Black" 
                                                         VerticalAlignment="Center" 
                                                         Name="txtInt" 
                                                         Width="60"/>
                                            </StackPanel>

                                            <StackPanel Grid.Column="0" Grid.Row="3" Orientation="Horizontal">
                                                <TextBlock Text="Cos" Margin="0,0,5,0" Foreground="White" 
                                                           TextBlock.FontWeight="Bold" 
                                                           VerticalAlignment="Center" Background="Black" Width="40" TextAlignment="Center"/>
                                                <TextBox Text="{Binding Cos}" Foreground="Black" 
                                                         VerticalAlignment="Center" 
                                                         Name="txtCos" 
                                                         Width="60"/>
                                            </StackPanel>

                                            <StackPanel Grid.Column="0" Grid.Row="4" Orientation="Horizontal">
                                                <TextBlock Text="Wis" Margin="0,0,5,0" Foreground="White" 
                                                           TextBlock.FontWeight="Bold" 
                                                           VerticalAlignment="Center" Background="Black" 
                                                           Width="40" TextAlignment="Center"/>
                                                <TextBox Text="{Binding Wis}" Foreground="Black" 
                                                         VerticalAlignment="Center" 
                                                         Name="txtWis" 
                                                         Width="60"/>
                                            </StackPanel>

                                            <StackPanel Grid.Column="0" Grid.Row="5" Orientation="Horizontal">
                                                <TextBlock Text="Cha" Margin="0,0,5,0" Foreground="White" 
                                                           TextBlock.FontWeight="Bold" 
                                                           VerticalAlignment="Center" Background="Black" 
                                                           Width="40" TextAlignment="Center"/>
                                                <TextBox Text="{Binding Cha}" Foreground="Black" 
                                                         VerticalAlignment="Center" 
                                                         Name="txtCha" 
                                                         Width="60"/>
                                            </StackPanel>
                                        </Grid>
                                    </Border>
                                </Grid>

                                <Grid Grid.Row="2" Name="CharacterAbility">

                                </Grid>
                            </Grid>

                            <!-- Save button -->

                            <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
                                <Button Width="120" 
                                        Height="Auto"
                                        Content="Save" 
                                        Margin="5,5,5,5"
                                        Name="btnSaveButton" />
                            </StackPanel>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
             
    